﻿using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

namespace Journeo_backend.Models.Domain
{
    [Table("plan_attractions")]
    public class PlanAttraction
    {
        [Key]
        public long PlanAttractionId { get; set; }

        [Required]
        public long PlanId { get; set; }

        [Required]
        public long AttractionId { get; set; }

        [Required]
        public int? VisitDay { get; set; }

        [Required]
        public int VisitOrder { get; set; }

        public string? EstimatedDuration { get; set; }

        public string? GptAnalysis { get; set; }

        public string? VisitNotes { get; set; }

        public DateTime CreatedAt { get; set; } = DateTime.Now;

        public DateTime UpdatedAt { get; set; } = DateTime.Now;


        [ForeignKey("PlanId")]
        public TravelPlan? TravelPlan { get; set; }

        [ForeignKey("AttractionId")]
        public Attraction? Attraction { get; set; }

    }
}
